﻿<%@ Page Title="Change Vacancy" Language="C#" MasterPageFile="~/Employee/MasterPageEmployee.master" AutoEventWireup="true" CodeFile="ChangeVacancy.aspx.cs" Inherits="Employee_ChangeVacancy" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentmain" Runat="Server">
    <div id="Main">
        <h2>Change a new Vacancy</h2>
        <p class="LineOdd">
            <asp:Label ID="Label1" runat="server"  CssClass="lblTitleCss" Text="Vacancy ID:" Width="180px"></asp:Label>
            <asp:TextBox ID="txtVacancyID" runat="server" Width="200px" Enabled="False"></asp:TextBox>
        </p> 
        <p>
            <asp:Label ID="lblTypeOfWork" runat="server" CssClass="lblTitleCss" Text="Type of work:" Width="180px"></asp:Label>
            <asp:DropDownList ID="ddlTypeJob" runat="server" 
                CssClass="CVinput" Height="20px" Width="204px">
                <asp:ListItem Selected="True">Please choise Type of work</asp:ListItem>
            </asp:DropDownList>
            <asp:Label ID="lblTypeofworkError" runat="server" ForeColor="Red"></asp:Label>
        </p>
        <p class="LineOdd">
            <asp:Label ID="lblTitle" runat="server"  CssClass="lblTitleCss" Text="Title Vacancy:" Width="180px"></asp:Label>
            <asp:TextBox ID="txtTitle" runat="server" Width="200px"></asp:TextBox>
            <asp:Label ID="lblTitleError" runat="server" ForeColor="Red"></asp:Label>
        </p>
        <p style="height: 50px;">
            <asp:Label ID="lblDescription" runat="server"  CssClass="lblTitleCss" Text="Description:" Width="180px"></asp:Label>
            <asp:TextBox ID="txtDecription" runat="server" TextMode="MultiLine" 
                CssClass="CVinput" Height="40px" Width="202px"></asp:TextBox>
            <asp:Label ID="lblDescriptError" runat="server" ForeColor="Red"></asp:Label>
        </p>
        <p class="LineOdd">
            <asp:Label ID="lblNumberofJob" runat="server" CssClass="lblTitleCss" Text="Number needed to hire:" Width="180px"></asp:Label>
            <asp:TextBox ID="txtNumberofJob" runat="server" CssClass="CVinput" 
                Height="20px" Width="200px"></asp:TextBox>
            <asp:Label ID="lblNumber" runat="server" ForeColor="Red"></asp:Label>
        </p>
        <p>
            <asp:Label ID="Label2" runat="server" Text="Vacancy position empty:" CssClass="lblTitleCss" Width="180px"></asp:Label>
            <asp:TextBox ID="txtNumEmpty" runat="server" Width="200px" Enabled="False"></asp:TextBox>
            <asp:Label ID="Label3" runat="server" ForeColor="Red"></asp:Label>
        </p>
        <p class="LineOdd">
            <asp:Label ID="lblSalary" runat="server" Text="Salaries:" CssClass="lblTitleCss" Width="180px"></asp:Label>
            <asp:TextBox ID="txtSalary" runat="server" Width="200px"></asp:TextBox>
            <asp:Label ID="lblErrorSalary" runat="server" ForeColor="Red"></asp:Label>
        </p>
        <p>
            <asp:Label ID="lblWorkplace" runat="server" Text="Address workplase:" CssClass="lblTitleCss" Width="180px"></asp:Label>
            <asp:TextBox ID="txtAddress" runat="server" Width="200px"></asp:TextBox>
            <asp:Label ID="lblErrorAddress" runat="server" ForeColor="Red"></asp:Label>
        </p>
        <p class="LineOdd">
            <asp:Label ID="lblDateCreation" runat="server" Text="Date Creation:" CssClass="lblTitleCss" Width="180px"></asp:Label>
            <asp:TextBox ID="txtDateCreation" runat="server" CssClass="CVinput" Width="200px" Enabled="False"></asp:TextBox>
        </p>
        <p>
            <asp:Label ID="DateFylfilled" runat="server" Text="Date Fulfilled:" CssClass="lblTitleCss" Width="180px"></asp:Label>
            <asp:TextBox ID="txtDateFilfilled" runat="server" CssClass="CVinput" Width="200px"></asp:TextBox>
            <asp:CalendarExtender ID="txtDateFilfilled_CalendarExtender" runat="server" TargetControlID="txtDateFilfilled">
            </asp:CalendarExtender>
            <asp:Label ID="lblDateError" runat="server" ForeColor="Red"></asp:Label>
        </p>
        <p class="LineOdd">
            <asp:Label ID="lblStatus" runat="server" Text="Status:" CssClass="lblTitleCss" Width="180px"></asp:Label>
            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="CVinput" 
                Height="20px" Width="204px">
                <asp:ListItem Selected="True" Value="1">On</asp:ListItem>
                <asp:ListItem Value="2">Suspended</asp:ListItem>
                <asp:ListItem Value="3">Close</asp:ListItem>
            </asp:DropDownList>
        </p>
        <p>
            <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red"></asp:Label>
            <asp:Label ID="lblSuccess" runat="server" ForeColor="Blue"></asp:Label>
            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
            </asp:ToolkitScriptManager>
        </p>
        <p>
            <asp:Button ID="btnSaveChange" runat="server" Text="Save Changes" Height="30px" 
                Width="100px" ToolTip="Create new Vacancy" onclick="btnSaveChange_Click" />
            <asp:Button ID="btnClear" runat="server" Text="Clear" Height="30px" 
                Width="70px" ToolTip="Clear all textbox" onclick="btnClear_Click" />
        </p>
    </div>
</asp:Content>

